/*
 * @Author: Superficial
 * @Date: 2021-02-22 19:33:42
 * @LastEditTime: 2021-02-23 12:23:22
 * @Description: universal
 */
import { isClient, isServer } from "@/environment"

export const onClient = (callback) => {
  isClient && callback()
}

export const onServer = (callback) => {
  isServer && callback()
}